(define-key-after): Clarify that the function is not useful for non-menu keymaps.
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Thu, 6 Oct 2011 19:15:19 +0000 (21:15 +0200)
committerLars Magne Ingebrigtsen <larsi@gnus.org>
Thu, 6 Oct 2011 19:15:19 +0000 (21:15 +0200)
lisp/ChangeLog
lisp/subr.el

index 86685e2da8fe4343acd9be3349397908ea8a1e8c..eb4b745849b19d59bde94f6a26b492b6b2ecaaf5 100644 (file)
@@ -1,5 +1,8 @@
 2011-10-06  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
+       * subr.el (define-key-after): Clarify that the function is not
+       useful for non-menu keymaps.
+
        * progmodes/gdb-mi.el (gdb): Fix typo in doc string.
 
 2011-10-06  Thierry Volpiatto  <thierry.volpiatto@gmail.com>
index 24e020acf09d032a6f4ad3a572983f88a8ef8231..05ac198dd13c38b7cf63c276aa644fd14a675936 100644 (file)
@@ -552,7 +552,8 @@ AFTER should be a single event type--a symbol or a character, not a sequence.
 
 Bindings are always added before any inherited map.
 
-The order of bindings in a keymap matters when it is used as a menu."
+The order of bindings in a keymap only matters when it is used as
+a menu, so this function is not useful for non-menu keymaps."
   (unless after (setq after t))
   (or (keymapp keymap)
       (signal 'wrong-type-argument (list 'keymapp keymap)))